//
//  NetworkTools.h
//  ASR_Demo
//
//  Created by marco on 16/3/9.
//  Copyright © 2016年 Marco. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void (^RequestSuccess)(id json);
typedef void (^RequestFailure)(NSError *error);

@interface NetworkTools : NSObject

+ (NSURLSessionDataTask *)GET:(NSString *)url params:(NSDictionary *)params success:(RequestSuccess)success failure:(RequestFailure)failure;

+ (NSURLSessionDataTask *)POST:(NSString *)url params:(NSDictionary *)params success:(RequestSuccess)success failure:(RequestFailure)failure;


@end
